package com.wu.company.entity;


import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * POJO��PrpdoperateconfigId
 */
@Embeddable
public class PrpdoperateconfigId implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	
	private String makeCom;

	private String operatecode;

	
	private String riskCode;

	
	private String handler1Code;

	
	public PrpdoperateconfigId() {
	}

	

	@Column(name = "MAKECOM")
	public String getMakeCom() {
		return this.makeCom;
	}

	
	public void setMakeCom(String makeCom) {
		this.makeCom = makeCom;
	}

	

	@Column(name = "OPERATECODE")
	public String getOperatecode() {
		return this.operatecode;
	}

	
	public void setOperatecode(String operatecode) {
		this.operatecode = operatecode;
	}



	@Column(name = "RISKCODE")
	public String getRiskCode() {
		return this.riskCode;
	}

	
	public void setRiskCode(String riskCode) {
		this.riskCode = riskCode;
	}

	

	@Column(name = "HANDLER1CODE")
	public String getHandler1Code() {
		return this.handler1Code;
	}

	
	public void setHandler1Code(String handler1Code) {
		this.handler1Code = handler1Code;
	}

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof PrpdoperateconfigId)) {
			return false;
		}
		PrpdoperateconfigId castOther = (PrpdoperateconfigId) other;

		return ((this.getMakeCom() == castOther.getMakeCom()) || (this
				.getMakeCom() != null && castOther.getMakeCom() != null && this
				.getMakeCom().equals(castOther.getMakeCom())))
				&& ((this.getOperatecode() == castOther.getOperatecode()) || (this
						.getOperatecode() != null
						&& castOther.getOperatecode() != null && this
						.getOperatecode().equals(castOther.getOperatecode())))
				&& ((this.getRiskCode() == castOther.getRiskCode()) || (this
						.getRiskCode() != null
						&& castOther.getRiskCode() != null && this
						.getRiskCode().equals(castOther.getRiskCode())))
				&& ((this.getHandler1Code() == castOther.getHandler1Code()) || (this
						.getHandler1Code() != null
						&& castOther.getHandler1Code() != null && this
						.getHandler1Code().equals(castOther.getHandler1Code())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMakeCom() == null ? 0 : this.getMakeCom().hashCode());
		result = 37
				* result
				+ (getOperatecode() == null ? 0 : this.getOperatecode()
						.hashCode());
		result = 37 * result
				+ (getRiskCode() == null ? 0 : this.getRiskCode().hashCode());
		result = 37
				* result
				+ (getHandler1Code() == null ? 0 : this.getHandler1Code()
						.hashCode());
		return result;
	}

}

